from rest_framework import serializers
from app.models import *
from .mixins  import *
import json


class ApplicationSerializer(serializers.ModelSerializer):
    """ 应用信息 """   
    class Meta:
        model = Application
        fields = "__all__"
        depth = 1 


class ProductSerializer(serializers.ModelSerializer):
    """ 应用信息 """
    class Meta:
        model = Product
        fields = "__all__"
class EnvConfigSerializer(serializers.ModelSerializer):
    """ 环境配置 """
    class Meta:
        model = EnvConfig
        fields = "__all__"
class AppDeveloperSerializer(serializers.ModelSerializer):
    """ 应用信息 """
    class Meta:
        model = AppDeveloper
        fields = "__all__"
